function create_edit_form(url_read, url_write, domain_used, biov_domain, companyInfo, name) {

    var topic_domain = biov_domain + "science_or_technology_company";
    var topic_type = biov_domain + "science_or_technology_company";
    var topic_id = companyInfo.id;

    createBlurbElement(domain_used, name, topic_domain, topic_id, 500, "edit_overview");

    var founded_options = {
        topicName: name,
        currentVal: companyInfo.founded,
        property: "/business/company/founded",
        propertyType: "/type/datetime",
        topic_id: topic_id,
        useSuggest: false
    };

    var companyType_options = {
        topicName: name,
        currentVal: companyInfo.companyType,
        property: "/business/company/company_type",
        propertyType: "/business/company_type",
        topic_id: topic_id,
        useSuggest: true
    };
    
    var industry_options = {
        url_read: url_read,
        current_vals_q:
            "{\"query\":[{" +
            "\"/business/company/industry\":[{\"*\":null,\"optional\":true}]," +
            "\"type\":\"/business/company\"," +
            "\"id\" : \"" +
            topic_id +
            "\"" +
            "}]}",
        topic_name: name,
        current_vals: companyInfo.industries,
        property: "/business/company/industry",
        property_type: ["/business/industry"],
        topic_type: topic_type,
        topic_id: topic_id
    };
    
    var medicalfocus_options = {
        url_read: url_read,
        current_vals_q:
            "{\"query\":[{" + "\"" +
            biov_domain + "science_or_technology_company/develops_treatments_for_disease\":[{\"*\":null,\"optional\":true}]," +
            "\"type\":\"/business/company\"," +
            "\"id\" : \"" +
            topic_id + "\"" + "}]}",
        topic_name: name,
        current_vals: companyInfo.diseases,
        property: biov_domain + "science_or_technology_company/develops_treatments_for_disease",
        property_type: [biov_domain + "bv_medical_condition"],
        topic_type: topic_type,
        topic_id: topic_id
    };
    
    multiElement("span_develops_treatments_for_disease", medicalfocus_options, domain_used);
    
    var technologies_options = {
        url_read: url_read,
        current_vals_q:
            "{\"query\":[{" + "\"" +
            biov_domain + "science_or_technology_company/area_of_expertise\":[{\"*\":null,\"optional\":true}]," +
            "\"type\":\"/business/company\"," +
            "\"id\" : \"" +
            topic_id + "\"" + "}]}",
        topic_name: name,
        current_vals: companyInfo.technologies,
        property: biov_domain + "science_or_technology_company/area_of_expertise",
        property_type: [biov_domain + "technology_class"],
        topic_type: topic_type,
        topic_id: topic_id
    };
    
    multiElement("span_technologies", technologies_options, domain_used);
    
    var product_options = {
        url_read: url_read,
         current_vals_q: "{\"query\":[{" + "\"" +
         biov_domain + "science_or_technology_company/products\":[{" + "\"*\":null," +
         "\"optional\":true, " + "\"sales\":[{\"*\":null,\"optional\":true}]," +
         "\"developed_by\":[{\"name\":null,\"id\":null}]" + "}]," +
         "\"type\":\"/business/company\"," + "\"id\" : \"" +
         topic_id + "\"" + "}]}",
         topic_name: name,
         current_vals: companyInfo.products,
         property: biov_domain + "science_or_technology_company/products",
         property_type: [biov_domain + "product"],
         topic_type: topic_type,
         topic_id: topic_id
    };
    
    multiElement("span_products", product_options, domain_used);
    
    createDrugPipeline(
        "span_therapeutic_pipeline",
        biov_domain, name, topic_type, topic_id,
        companyInfo.therapeutics
    );
    
    createWebPage_edit(
        "span_webpages", name, topic_type, topic_id,
        companyInfo.webpages, domain_used, url_read
    );
    
    createHeadquarters_edit(
        "span_headquarters", name, topic_type, topic_id, companyInfo.headquarters,
        domain_used, url_read
    );
    
    var propertyNames = [
        "investment_round",
        "amount_raised",
        "currency",
        "date",
        "investors",
        "web_reference"
    ];
    
    var useSuggest = [true, false, true, false, true, false];
    
    var propertyTypes = [
        "/venture_capital/investment_round",
        "/type/float",
        "/finance/currency",
        "/type/datetime",
        "/base/bioventurist/bv_venture_investor",
        "/type/uri"
    ];
    
    var compoundPropertyType = "/base/bioventurist/bv_investment_round";
    var compoundProperty = "/base/bioventurist/science_or_technology_company/investment_round";
    
    var investment_options = {
        topicName: name,
        currentVals: companyInfo.investments,
        propertyNames: propertyNames,
        propertyTypes: propertyTypes,
        type: topic_type,
        topic_id: topic_id,
        compoundPropertyType: compoundPropertyType,
        compoundProperty: compoundProperty,
        useSuggest: useSuggest
    };
    
    createFreebaseRedirect(companyInfo.guid, "freebase_redirect");
}


function createTherapeuticPipelineCurrentVals(vals) {
    var topic2 = new Array;
    for (var i = 0; i < vals.length; i++) {
        var therapeutic = vals[i];
        topic2[i] = new Object;
        topic2[i].compound_elements = Array();
        topic2[i].compound_elements[0] = 1;
    }
}
